package com.example.hilt.model

import android.app.Application
import com.example.hilt.app.MyApp
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent

/**
 ********************************************************
 *Author: chinadragon
 *Time: 2023/9/7 11:30
 *Name:
 *Overview:
 *Usage:
 ********************************************************
 */
@Module
@InstallIn(SingletonComponent::class)
class ApplicationModule {

    @Provides
    fun provideMyApplication(application: Application): MyApp {
        return application as MyApp
    }

}